class Animal:
    def __init__(self,name,age):
        self.name = name
        self.age = age

    def eat(self):
        print(f'{self.name}正在吃东西...')

animal = Animal('大黄',5)
print(animal.name,animal.age)
animal.eat()